package com.mondo.financialwallet.data.params;

public class SendMessageParams {

    public static SendMessageParams email(CharSequence email){
        return new SendMessageParams(2, email.toString(), null);
    }

    private int type;
    private String value;
    private String prefix;

    public SendMessageParams(String value, String prefix) {
        // 1：手机，2：邮箱
        this(1, value, prefix);
    }

    public SendMessageParams(String value) {
        // 1：手机，2：邮箱
        this(1, value, String.valueOf(86));
    }

    public SendMessageParams(int type, String value, String prefix) {
        this.type = type;
        this.value = value;
        this.prefix = prefix;
    }

    public int getType() {
        return type;
    }

    public String getValue() {
        return value;
    }

    public String getPrefix() {
        return prefix;
    }
}
